package com.cfpamf.ms.insur.wx.request;

import com.cfpamf.ms.insur.wx.model.WxPayRefundModel;
import com.cfpamf.ms.insur.wx.response.WxPayRefundResponse;

/**
 * 微信退款接口
 */
public class WxPayRefundRequest extends WxAbstractRequest<WxPayRefundModel, WxPayRefundResponse> {

    public WxPayRefundRequest(WxPayRefundModel model) {
        super(model);
    }

    @Override
    public String getApiAction() {
        return "/secapi/pay/refund";
    }

    @Override
    public Class<WxPayRefundModel> getObjectClass() {
        return WxPayRefundModel.class;
    }

    @Override
    public Class<WxPayRefundResponse> getResponseClass() {
        return WxPayRefundResponse.class;
    }

    /**
     * 微信退款需要数字证书！！！！！！
     *
     * @return
     */
    @Override
    public boolean requireCert() {
        return true;
    }
}
